
package ro.qi.framework.sys.mail.entities;

import ro.qi.framework.sys.entities.Entity;

public class MailMessageAttachmentCollection extends Entity {

	public MailMessageAttachmentCollection() {
		super();
	}

	public MailMessageAttachmentCollection(int messageId) {
		super();
		setMessageId(messageId);
		select();
	}

	public void setMessageId(int value) {
		setValue("messageId",value);
	}

	public int getCollectionSize() {
		return getCollectionSize("attachments");
	}

	public int getAttachmentId(int index) {
		return getCollectionIntValue("attachments", "attachmentId", index);
	}

}
